package com.cqjtu.platform.dao;

import com.cqjtu.platform.entity.RoleResourceBind;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author pengyangyan
 */
public interface RoleResourceBindDao extends BaseDao<RoleResourceBind> {

    /**
     * @param resourceId 资源id
     * @param roleList 角色ids
     * @return 0失败  >0 成功
     */
    Integer addBindInfo(@Param("resourceId") Integer resourceId, @Param("roleList") List<Integer> roleList);


    /**
     * @param resourceId  资源id
     * @return  0 失败  1成功
     */
    Integer deleteBindInfo(@Param("resourceId")Integer resourceId);

}
